package org.lgiavedoni.android.franq.core.message;

import lombok.Data;

import org.lgiavedoni.android.franq.core.communication.CommunicationSource;

@Data
public class MessageIn extends Message {

	private final CommunicationSource source;

	private MessageIn(CommunicationSource source, String text) {
		super(text, Message.UNKNOW_USER);
		this.source = source;
	}

	private MessageIn(CommunicationSource source, String text, String user) {
		super(text, user);
		this.source = source;
	}

	public static MessageIn create(CommunicationSource source, String text) {
		return new MessageIn(source, text);
	}

	public static MessageIn create(CommunicationSource source, String text, String user) {
		return new MessageIn(source, text, user);
	}

}
